package org.deng.learn.designpattern.command;

import java.util.LinkedList;
import java.util.List;

/**
 * @Author DengLibin
 * @Date 19-5-5
 * @Time 上午11:51
 * @Desc 多个命令
 */
public class CommandList extends Command {
    private List<Command> list = new LinkedList<>();
    @Override
    void execute() {
        for(Command command : list){
            command.execute();
        }
    }
}
